package org.cmodel.plugin1.controller;

import com.gitee.starblues.core.classloader.PluginClassLoader;
import org.springframework.stereotype.Controller;
import org.springframework.ui.Model;
import org.springframework.web.bind.annotation.*;

import java.util.UUID;

@RequestMapping("/caller")
@Controller
public class TestController {

    @GetMapping("test1")
    @ResponseBody
    public String test1(){
        return "我是插件1请求";
    }

    @GetMapping()
    public String show(Model model){
        model.addAttribute("uid", UUID.randomUUID().toString());
        model.addAttribute("name","uuid");
        return "index";
    }

    @GetMapping("show3")
    public String show3(@RequestParam("path") String path){
        return path;
    }

}
